﻿#region Namespace References

using System;
using DynConDevCorp.OpenArch.SmartData.Interfaces;

#endregion

namespace DynConDevCorp.OpenArch.SmartData.Core.EntityTypeLevel
{
    public class SmartEntityTypeLevelData
    {
        #region Constructors

        public SmartEntityTypeLevelData(Type entityType)
        {
            EntityType = entityType;
        }

        #endregion

        #region Public Instance Properties

        public Type EntityType { get; private set; }

        #endregion

        #region Public Instance Methods

        public SmartEffectCollection GetFieldEffects()
        {
            SmartEffectCollection retVal = new SmartEffectCollection();
            retVal.AddRange(m_FieldEffects);
            return retVal;
        }

        public void RegisterFieldEffectForType(ISmartEffect effect)
        {
            m_FieldEffects.Add(effect);
        }

        #endregion

        #region Fields and Constants

        private readonly SmartEffectCollection m_FieldEffects = new SmartEffectCollection();

        #endregion
    }
}